<template>
	<view>
		<view class="title">审核信息</view>
		<u-cell-group>
			<u-cell title="审核状态" :value="info.check_status_text"></u-cell>
			<u-cell title="审核信息" :value="info.check_msg" v-if="info.check_msg!=null"></u-cell>
			<u-cell title="审核时间" :value="info.check_time" v-if="info.check_time!=null"></u-cell>
		</u-cell-group>
		<view class="title">申请信息</view>
		<u-cell-group>
			<u-cell title="应用" :value="info.app_name"></u-cell>
			<u-cell title="应用ID" :value="info.appid"></u-cell>
			<u-cell title="昵称" :value="info.nickname"></u-cell>
			<u-cell title="手机号" :value="info.phone"></u-cell>
			<u-cell title="所在地区" :value="info.region_name"></u-cell>
			<u-cell title="主页" :value="info.homepage"></u-cell>
			<u-cell title="粉丝数" :value="info.fans"></u-cell>
			<u-cell title="级别" :value="info.level"></u-cell>
			<u-cell title="申请时间" :value="info.create_time"></u-cell>
		</u-cell-group>
		<view class="img-div">
			<view>应用内二维码：</view>
			<image mode="widthFix" :src="info.appqrcode"></image>
		</view>
	</view>
</template>

<script>
	import {
		darenApplyDetail
	} from '@/api/apiData.js';
	export default {
		data() {
			return {
				id: '',
				info: ''
			};
		},
		onLoad(option) {
			this.id = option.id
			this.getInfo()
		},
		methods: {
			async getInfo() {
				const result = await darenApplyDetail({
					apply_id: this.id
				})
				if (result.code == 1) {
					result.data.level = 'V'+result.data.level
					this.info = result.data
					
				} else {
					uni.showToast({
						title: result.msg,
						icon: 'error'
					})
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.title {
		padding: 28rpx;
		font-weight: bold;
		font-size: 30rpx;
		color: #FF6543;
	}

	.img-div {
		padding: 30rpx;
		font-size: 28rpx;

		view {
			font-weight: bold;
		}

		image {
			width: 300rpx;
			height: 500rpx;
		}
	}
</style>